﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenThesis.DTO.FX
{
	public class Position
	{
		public Position(IContract contract, decimal quantity, DateTime delivery)
		{
			Contract = contract;
			Quantity = quantity;
			SettlementDate = delivery;
		}

		public IContract Contract { get; private set; }

		/// <summary>
		/// The quantity of this contract. 
		/// </summary>
		/// <remarks>
		/// The convention we follow is that
		/// positive values indicate a long position 
		/// while negative values indicate a short position
		/// </remarks>
		public decimal Quantity { get; private set; }

		public DateTime SettlementDate { get; private set; }
	}
}
